package com.hxexp.weixin.hpe.api.login.model;

import java.io.Serializable;

/**
 * HPE接口用户登录凭证
 * 
 * @author li.jiang
 *
 */

public final class LoginParamBean implements Serializable {

    private static final long serialVersionUID = -7354648843265428091L;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 登陆方式
     */
    private String loginType;
    /**
     * 微信用户openId
     */
    private String openId;

    /**
     * 无参构造器
     */
    public LoginParamBean() {
    }

    /**
     * 有参构造器
     * 
     * @param username
     *            用户名
     * @param password
     *            密码
     * @param loginType
     *            登陆方式
     * @param openId
     *            微信用户openId
     */
    public LoginParamBean(String username, String password, String loginType, String openId) {
        super();
        this.username = username;
        this.password = password;
        this.loginType = loginType;
        this.openId = openId;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username
     *            the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     *            the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Override
    public String toString() {
        return String.format("LoginParamBean [username=%s, password=%s, loginType=%s, openId=%s]", username, password,
                loginType, openId);
    }

}
